{% extends "GairalAdminBundle::layout.html.twig" %}

{% block bodyAdmin %}
<section id="adminEducationModify" class="content">
    <h1>Modify Education</h1>
    <form method="post" {{ form_enctype(form) }} class="well">

        {{ form_label(form.image) }}
        <ul class="thumbnails imageFormGalery">
   {% for child in form.image %}
        {% set index = child.vars.value %}
                <li class="text-center">
                    <label for="{{form.image.vars.id ~ '_' ~ image_choices[index].id}}" class="thumbnail">
                        <span>{{image_choices[index].name}}</span>
                        <img src="{{ asset(image_choices[index].webPath)}}" alt="{{ image_choices[index].name }}" style="max-height:100px;"/>
                    </label>
        {{ form_widget(child) }} {# the radio/checkbox #}
                </li>
    {% endfor %}
            </ul>

        {{ form_rest(form) }}

            <div class="btn-toolbar">
                <a href="{{ path('AdminExperience') }}" class="btn btn-info" title="Cancel">
                    <i class="icon-white icon-chevron-left"></i>
                    Cancel
                </a>
                <input type="submit" class="btn btn-primary" value="Save" />
            </div>
        </form>
    </section>
{% endblock %}
